Enter in Target

Command Prototype

Keyboard.InputText(objUiElement,sText,bEmptyField,iDelayBetweenKeys,iTimeOut,optionArgs)

Command Description

Enter texts in the specified UI element

Parameter Description
Required Parameter
objUiElement--Correspond to the UI element to operate; when passed as a string type, it is used as feature string to find the UI element; when passed as UiElement type, directly click its matching UI element
sText--The texts to be written in the specified UI element
bEmptyField--Whether to clear the input box before writing texts
iDelayBetweenKeys--The interval between two inputs, the default is 10 milliseconds (valid only if the simulate option in dictOption parameter is simulate)
iTimeOut-- Specify the time (in milliseconds) to wait for an activity to run before SelectorNotFoundException throws an error. The default is 10000 milliseconds (10 seconds)
Optional Parameter
bContinueOnError--Specify whether automation should continue if the activity throws an error. This field only supports Boolean values ​​(True, False). The default is False
iDelayAfter--The delay in milliseconds after the activity is executed. The default is 300 milliseconds
iDelayBefore--The delay in milliseconds before the activity starts any operation. The default is 200 milliseconds
sKeyModifiers--Keyboard keys pressed down when a mouse action is triggered, the following options are available: Alt, Ctrl, Shift, Win
sSimulate--Type of Simulation, {default: default UIA mode, simulate: simulated click, message: windows message}
bValidate--Compare the property content "write text" with the actual input conten, if the content are the same, continue to run; if not, throw an execution.

results matching ""

    No results matching ""